import React, { Component } from 'react'
import ReactLoading from 'react-loading'

export default class Loading extends Component {
  render() {
    const {
      type, height, width, ...others
    } = this.props
    return (
      <div className="page-loading">
        <ReactLoading
          color="#000000"
          height={height || 100}
          width={width || 100}
          type={type || 'bars'}
          {...others}
        />
      </div>
    )
  }
}
